package Deom6;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 周斌
 * Date: 2023-11-19
 * Time: 21:31
 */
public  class Base {
    static {
        System.out.println("Base::static");
    }
    {
        System.out.println("Base实例代码块");
    }
    public Base() {
        System.out.println("Base构造方法");
    }
}
class Derived extends Base {
    static {
        System.out.println("Derived::static");
    }
    {
        System.out.println("Derived实例代码块");
    }
    public Derived() {
        System.out.println("Derived构造方法");
    }

    public static void main(String[] args) {
        Derived derived = new Derived();
        System.out.println("==================");
        Derived derived1 = new Derived();
    }
}